"""
    1. 按下后释放一个键press
        pyautogui.press()
            pyautogui.press("enter")
            pyautogui.press("f1")
            pyautogui.press("left")
    2. 按下和释放
        pyautogui.keyDown()
        pyautogui.keyUp()
"""
import pyautogui

pyautogui.press('x')
pyautogui.press('y')
pyautogui.press('z')
pyautogui.press('enter')

# 首先按x, 再按y, 再按z
pyautogui.press(['x', 'y', 'z'])

# 实现复制粘贴
pyautogui.keyDown('ctrl')
pyautogui.keyDown('v')
pyautogui.keyUp('ctrl')
pyautogui.keyUp('v')


